/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file    gpio.h
  * @brief   This file contains all the function prototypes for
  *          the gpio.c file
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GPIO_H__
#define __GPIO_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

/* USER CODE BEGIN Includes */
void Power_Amp_Init(void);
void Mag_Flux_Init(void);
void Current_Gear_Switch(uint8_t Big_Gear_Mode,uint8_t Small_Gear_Mode);
void Voltage_Current_Sourch_Switch(uint8_t Gear_Mode);
void DA_Switch(uint8_t DA_Mode);
void Mag_Flux_Gear_Switch(uint8_t Mag_Flux_Gear_Mode);
void Current_Control(uint16_t Key_Num);
float Sqrt_Self(float Value_A,uint8_t Value_B);
void Mag_Flux_Control(void);
void Sys_Res_Enable(uint8_t Mode);
void Drift_Adjust_Enable(uint8_t Mode);
void Drift_Restrain_Enable(uint8_t Mode);
void Mag_Clear_Enable(uint8_t Mode);
void SYS_Protect_Enable(uint8_t Enable);

/* USER CODE END Includes */

/* USER CODE BEGIN Private defines */


/* USER CODE END Private defines */

void MX_GPIO_Init(void);

/* USER CODE BEGIN Prototypes */

/* USER CODE END Prototypes */

#ifdef __cplusplus
}
#endif
#endif /*__ GPIO_H__ */

